/*
 * @Author: your name
 * @Date: 2021-08-19 15:22:48
 * @LastEditTime: 2021-09-01 14:23:50
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \central-system\src\modules\SysConfig\Strategy\loginStrategy\extraWay\api.js
 */
import request from '@/utils/request'
//获取第三方应用信息
export function getExtraData(data) {
  return request({
    url: '/sys-system/oauth/clients/page',
    method: 'get',
    params: data
  })
}
//更新第三方应用信息
export function editExtraData(data) {
  return request({
    url: '/sys-system/oauth/client',
    method: 'put',
    data: data
  })
}
//删除第三方应用
export function deleteExtraData(id) {
  return request({
    url: '/sys-system/oauth/client',
    method: 'DELETE',
    params: {
      id
    }
  })
}

//新增第三方应用
export function addExtraData(data) {
  return request({
    url: '/sys-system/oauth/client',
    method: 'post',
    data: data
  })
}
//更新应用信息
export function setConfig(data) {
  return request({
    url: '/sys-system/client',
    method: 'put',
    data: data,
  })
}
